import request from '@/utils/request'

export function activityList(token) {
  return request({
    url: '/activity/activity',
    method: 'get'
  })
}

export function addActivity(data) {
  return request({
    url: '/activity/activity',
    method: 'post',
    data
  })
}

export function updateActivity(data) {
  return request({
    url: '/activity/activity',
    method: 'put',
    data
  })
}

export function delActivity(data) {
  return request({
    url: '/activity/activity',
    method: 'delete',
    data
  })
}
